export function isNullorUnDef(val: unknown): val is null | undefined {
    return isUnDef(val) || isNull(val)
}

export function isUnDef<T = unknown>(val: T): val is T {
    return typeof val === 'undefined'
}

export function isNull<T = unknown>(val: T): val is T {
    return val === null
}

export function isNumber(val: unknown): val is number {

    return typeof val === 'number'

}
export function isFunction(val: unknown): val is Function {
    return typeof val === 'function';
}

export function isString(val:unknown):val is String{
    return typeof val === 'string'
}